package com.x9space.business.test.service.impl;

import java.util.List;
import com.x9space.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.x9space.business.test.mapper.X9sTestMapper;
import com.x9space.business.test.domain.X9sTest;
import com.x9space.business.test.service.IX9sTestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
 * 测试Service业务层处理
 * 
 * @author x9space
 * @date 2021-07-09
 */
@Service
public class X9sTestServiceImpl extends ServiceImpl<X9sTestMapper, X9sTest> implements IX9sTestService
{

    /**
     * 查询测试
     * 
     * @param id 测试ID
     * @return 测试
     */
    @Override
    public X9sTest selectX9sTestById(Long id)
    {
        return this.getBaseMapper().selectX9sTestById(id);
    }

    /**
     * 查询测试列表
     * 
     * @param x9sTest 测试
     * @return 测试
     */
    @Override
    public List<X9sTest> selectX9sTestList(X9sTest x9sTest)
    {
        return this.getBaseMapper().selectX9sTestList(x9sTest);
    }

    /**
     * 新增测试
     * 
     * @param x9sTest 测试
     * @return 结果
     */
    @Override
    public int insertX9sTest(X9sTest x9sTest)
    {
        x9sTest.setCreateTime(DateUtils.getNowDate());
        return this.getBaseMapper().insertX9sTest(x9sTest);
    }

    /**
     * 修改测试
     * 
     * @param x9sTest 测试
     * @return 结果
     */
    @Override
    public int updateX9sTest(X9sTest x9sTest)
    {
        x9sTest.setUpdateTime(DateUtils.getNowDate());
        return this.getBaseMapper().updateX9sTest(x9sTest);
    }

    /**
     * 批量删除测试
     * 
     * @param ids 需要删除的测试ID
     * @return 结果
     */
    @Override
    public int deleteX9sTestByIds(Long[] ids)
    {
        return this.getBaseMapper().deleteX9sTestByIds(ids);
    }

    /**
     * 删除测试信息
     * 
     * @param id 测试ID
     * @return 结果
     */
    @Override
    public int deleteX9sTestById(Long id)
    {
        return this.getBaseMapper().deleteX9sTestById(id);
    }
}
